<?php
/**
 * @copyright   Copyright (c) 2017 https://www.sapixx.com All rights reserved.
 * @license     Licensed (http://www.apache.org/licenses/LICENSE-2.0).
 * @author      pillar<ltmn@qq.com>
 * 商品规格
 */
namespace app\allwin\validate;
use think\Validate;

class Infotpl extends Validate{

    protected $rule = [
        'id'     => 'require|number',
        'name'   => 'require',
        'title'  => 'require|array',
        'values' => 'require|array',
        'types'  => 'require|array',
    ];

    protected $message = [
        'id'     => '资源丢失',
        'name'   => '模板名称必须填写',
        'title'  => '表单值设置不正确',
        'values' => '表单值设置不正确',
        'types'  => '表单值设置不正确',
    ];
    protected $scene = [
        'edit' => ['id','name','title','values','types'],
    ];
}